
<tr ${$index%2?'':'class="alt"'}>
	<td><?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id'=>$data->id)); ?></td>
	<td><?php echo CHtml::encode($data->name->username); ?></td>
	<td><?php echo CHtml::encode($data->partnername->username); ?></td>
	<td><?php echo CHtml::encode($data->teamname->title); ?></td>
	<td><?php echo CHtml::encode($data->order_id); ?></td>
	<td><?php echo CHtml::encode($data->secret); ?></td>
	<td><?php if($data->consume==N&&time()<=$data->expire_time) echo '尚未消费';
		 else if(time()>$data->expire_time) echo '已经过期';
		 else  echo '已经消费'.date('Y-m-d',CHtml::encode($data->consume_time)); ?></td>
</tr>